<admintpl file="headerEx" />
<title>URL美化</title>
<link href="__PUBLIC__/js/artDialog/skins/default.css" rel="stylesheet" />
<!--responsive table-->
<link href="__PUBLIC__/TciocEx/css/table-responsive.css" rel="stylesheet" />
</head>

<!-- Placed js at the end of the document so the pages load faster -->
<body class="sticky-header">
<section>
	<!-- main content start-->
	<div class="full-content" >
		<!--body wrapper start-->
		<div class="wrapper">
			<div class="row">
				<div class="col-sm-12">
					<section class="panel">
						<header class="panel-heading custom-tab turquoise-tab">
							<ul class="nav nav-tabs">
								<li><a href="{:U('setting/site')}"><i class="fa fa-list-ul"></i> 网站信息</a></li>
								<li class="active"><a href="{:U('route/index')}"><i class="fa fa-list-alt"></i> URL美化</a></li>
								<li><a href="{:U('route/add')}"><i class="fa fa-plus"></i> 添加URL规则</a></li>
							</ul>
						</header>
						<php> $status=array("1"=>L('DISPLAY'),"0"=>L('HIDDEN')); </php>
						<div class="panel-body">
							<section class="panel" >
								<form class="form-horizontal js-ajax-form form-horizontal " role="form" method="post" action="{:U('route/listorders')}">
									<section  class="panel" style="margin-bottom: 0px">
										<div class="btn-group m-bot15">
											<button type="submit" class="btn btn-primary btn-small js-ajax-submit">排序</button>
										</div>
									</section>
									<section id="no-more-tables">
										<table class="table table-hover table-bordered table-list">
											<thead>
											<tr>
												<th width="3%">排序</th>
												<th width="5%">ID</th>
												<th width="35%" >原始网址</th>
												<th width="35%" >显示网址</th>
												<th width="8%" >状态</th>
												<th width="14%" >操作</th>
											</tr>
											</thead>
											<tbody>
											<php>$statuses=array('0'=>"已禁用","1"=>"已启用");</php>
											<foreach name="routes" item="vo">
												<tr>
													<td><input name='listorders[{$vo.id}]'
															   class="input input-order mr5" type='text' size='3'
															   value='{$vo.listorder}'></td>
													<td>{$vo.id}</td>
													<td>{$vo.full_url}</td>
													<td>{$vo.url}</td>
													<td>{$statuses[$vo['status']]}</td>
													<td>
														<a href="{:U('route/edit',array('id'=>$vo['id']))}">修改</a>|
														<a href="{:U('route/open',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="确定启用吗？">启用</a>|
														<a href="{:U('route/ban',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="确定禁用吗？">禁用</a>|
														<a href="{:U('route/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">删除</a>
													</td>
												</tr>
											</foreach>
											</tbody>
											<tfoot>
											<tr>
												<th width="50">排序</th>
												<th width="50">ID</th>
												<th>原始网址</th>
												<th>显示网址</th>
												<th>状态</th>
												<th >操作</th>
											</tr>
											</tfoot>
										</table>
									</section>
									<section  class="panel" style="margin-bottom: 0px">
										<div class="btn-group m-bot15">
											<button type="submit" class="btn btn-primary btn-small js-ajax-submit">排序</button>
										</div>
									</section>
								</form>
							</section>
						</div>
					</section>
				</div>
			</div>
		</div>

	</div>
	</div>
	</div>
	<!--body wrapper end-->

	<!--footer section start-->
	<footer>
		<admintpl file="copyright" />
	</footer>
	<!--footer section end-->

	</div>
	<!-- main content end-->
</section>
<script src="__PUBLIC__/TciocEx/js/jquery-1.10.2.min.js"></script>
<script src="__PUBLIC__/js/wind.js"></script>
<script src="__PUBLIC__/js/common.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery-ui-1.9.2.custom.min.js"></script>
<script src="__PUBLIC__/simpleboot/bootstrap/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery-migrate-1.2.1.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/modernizr.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery.nicescroll.js"></script>
<script src="__PUBLIC__/js/ajaxForm.js"></script>

<script type="text/javascript" src="__PUBLIC__/TciocEx/js/jquery.validate.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/validation-localization/messages_zh.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/scripts.js"></script>
<script src="__PUBLIC__/TciocEx/js/validation-init.js"></script>
</body>
</html>